package com.shrimpcolo.share.v03.computer;

public class Computer {

	CPU cpu;
	EMS ems;
	HardDisk hardDisk;

	public Computer(CPU cpu, EMS ems, HardDisk hardDisk) {

		this.cpu = cpu;
		this.ems = ems;
		this.hardDisk = hardDisk;
	}

	public void showInfo() {
		System.out.println("计算机信息如下：\n");
		System.out.println("CPU的品牌是： " + cpu.getCPUBrand() + ", 主频是: " + cpu.getFrequency() + "GHZ");

		System.out.println("内存容量是： " + ems.getSize() + "GB");
		System.out.println("硬盘容量是： " + hardDisk.getCapacity() + "GB");
	}

}
